package com.kevis.demo.es;

import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

//有且只有一个抽象方法的接口被称为函数式接口
@FunctionalInterface
public interface ElasticsearchTask  {
    void doSomething(RestHighLevelClient client) throws IOException;

    // 定义多个就会报错,FunctionalInterface 会去做检查
    //void doSomething1(RestHighLevelClient client);
}
